package com.ruoyi.module.file.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author yqq
 * @date 2023/3/24
 * @Description oss配置类
 */
@Configuration
@EnableConfigurationProperties(OssProperties.class)
@ConfigurationProperties("aliyun.oss")
public class OssProperties {
    /**
     * 填写Bucket所在地域对应的Endpoint
     */
    private String endpoint;
    /**
     * AccessKey的id
     */
    private String keyId;
    /**
     * AccessKey的密钥
     */
    private String keySecret;
    /**
     * 阿里云储存文件的Bucket名称
     */
    private String bucketName;

    /**
     * 阿里云储存文件的文件夹名称
     */
    private String fileHost;

    /**
     * 阿里云储存文件的url
     */
    private String urlPrefix;

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getKeyId() {
        return keyId;
    }

    public void setKeyId(String keyId) {
        this.keyId = keyId;
    }

    public String getKeySecret() {
        return keySecret;
    }

    public void setKeySecret(String keySecret) {
        this.keySecret = keySecret;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getFileHost() {
        return fileHost;
    }

    public void setFileHost(String fileHost) {
        this.fileHost = fileHost;
    }

    public String getUrlPrefix() {
        return urlPrefix;
    }

    public void setUrlPrefix(String urlPrefix) {
        this.urlPrefix = urlPrefix;
    }
}
